import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as ElIcons from '@element-plus/icons'

const app=createApp(App);
for (const name in ElIcons){
	app.component(name,(ElIcons as any)[name])
}
app.use(store)
app.use(router)
app.mount('#app')
app.use(ElementPlus, {
	locale: zhCn,
  })
// app.config.globalProperties.$http = axios

